package org.hamster.common.puremvc.events
{
	import flash.events.Event;
	
	public class ParallelEvent extends Event
	{
		public static const ITEM_SUCCESS:String = "parallelEventItemSuccess";
		public static const ITEM_FAILURE:String = "parallelEventItemFailure";
		public static const ALL_FINISHED:String = "parallelEventAllFinished";
		public static const ALL_FAILURE:String =  "parallelEventAllFailure";
		
		private var _item:ParallelEventDetailVO;
		public var relatedEvent:Event;
		
		public function ParallelEvent(type:String, item:ParallelEventDetailVO = null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this._item = item;
		}
		
		public function get item():ParallelEventDetailVO
		{
			return _item;
		}
	}
}